﻿using System.Collections.Generic;
using System.Linq;

namespace Recursos.Model
{
    public class CarrerasModel
    {
        public IList<Carrera> CargarCarreras()
        {
            var datacontext = new DataClassesRecursosDataContext();
            var carreras = new Repository<Carrera>(datacontext);
            return carreras.GetAll().ToList();
        }

    }

    
}
